﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.XtraGrid.Columns;

namespace NetDiskPRJ.Model
{
    /// <summary>
    /// 弹出窗口通用参数
    /// </summary>
    public class CommonDlgParameters
    {
        public CommonDlgParameters()
        {

        }
        /// <summary>
        /// 方法名称
        /// </summary>
        public ActionMethodType ActionMethod
        {
            set;
            get;
        }

        public bool bol
        {
            set;
            get;
        }


        private List<int> intList = new List<int>();
        /// <summary>
        /// int参数列表
        /// </summary>
        public List<int> IntList
        {
            set
            {
                intList = value;
            }
            get
            {
                return intList;
            }
        }
        private List<string> stringList = new List<string>();
        /// <summary>
        /// string参数列表
        /// </summary>
        public List<string> StringList
        {
            set
            {
                stringList = value;
            }
            get
            {
                return stringList;
            }
        }

        private List<decimal> decimalList = new List<decimal>();
        /// <summary>
        /// decimal参数列表
        /// </summary>
        public List<decimal> DecimalList
        {
            set
            {
                decimalList = value;
            }
            get
            {
                return decimalList;
            }
        }

        private List<GridColumnCollection> gridColCollectList = new List<GridColumnCollection>();
        /// <summary>
        /// grid的列对象列表
        /// </summary>
        public List<GridColumnCollection> GridColCollectList
        {
            set
            {
                gridColCollectList = value;
            }
            get
            {
                return gridColCollectList;
            }
        }

        private List<object> queryModelList = new List<object>();
        /// <summary>
        /// 查询对象Model实体类列表
        /// </summary>
        public List<object> QueryModelList
        {
            set
            {
                queryModelList = value;
            }
            get
            {
                return queryModelList;
            }
        }

    }
    /// <summary>
    /// 方法名称类型
    /// </summary>
    public enum ActionMethodType
    {
        /// <summary>
        /// 增加
        /// </summary>
        Add = 0,
        /// <summary>
        /// 修改
        /// </summary>
        Edit = 1,
        /// <summary>
        /// 查询
        /// </summary>
        Query = 2,
        /// <summary>
        /// 删除，冲红，作废
        /// </summary>
        Delete = 3,
        /// <summary>
        /// 重命名
        /// </summary>
        Rename = 4,
        /// <summary>
        /// 新建文件夹
        /// </summary>
        Newdir = 5
    }
}
